<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html lang="en">
	<head>
		<base href="<%=basePath%>">
		<meta charset="utf-8" />
		<%@ include file="../../share/layoutForm.jsp"%> 
		<script src="stoneframe/scripts/plugins/jquery.md5.js"></script>
	</head>
<body>
<form id="form1">
<div style="margin-top: 20px; margin-right: 30px;">
    <table class="form">
        <tr>
            <td class="formTitle">姓名</td>
            <td class="formValue">
                <input id="realName" readonly type="text" class="form-control" />
            </td>
        </tr>
        <tr>
            <td class="formTitle">帐户</td>
            <td class="formValue">
                <input id="userName" readonly type="text" class="form-control" />
            </td>
        </tr>
        <tr>
            <th class="formTitle">新密码<font face="宋体">*</font>
            </th>
            <td class="formValue">
                <input id="userPwd" type="text" class="form-control" placeholder="请输入新密码" isvalid="yes" checkexpession="NotNull" />
            </td>
        </tr>
    </table>
</div>
</form>
<script>
    var keyValue = request('keyValue');
    $(function () {
        $("#userName").val(request('userName'));
        $("#realName").val(request('realName'));
    })
    //保存事件
    function AcceptClick() {
        if (!$('#form1').Validform()) {
            return false;
        }
        var postData = $("#form1").GetWebControls(keyValue);
        //postData["userPwd"] = $.md5($.trim($("#userPwd").val()));
		postData["userPwd"] = $.trim($("#userPwd").val());
        $.SaveForm({
            url: "<%=basePath%>sysUser/editUserPwd.do?keyValue=" + keyValue,
            param: postData,
            loading: "正在保存数据...",
            success: function () {
            }
        })
    }
</script>
</body>
</html>